package framework;

import framework.BoardImpl;
import interfaces.Algorithm;
import interfaces.Board;
import interfaces.Cell;
import interfaces.Visualizer;

public class Framework {

  Visualizer vizualizer;
  Board board;
  Algorithm[] algorithms;


	public void setVisualizer(Visualizer v)
	{
        vizualizer = v;
	}

	public void intialstate(Cell[][] cells, int x, int y)
	{
        board = new BoardImpl(x,y);
        for(int i = 0; i < x; i++)
          for(int j = 0; j < y; j++)
          {
            board.setCell(cells[i][j],i,j);
          }
	}

	public void run()
	{
        
	}
	
	public void setAlgorithms(Algorithm[] algorithms)
	{
		this.algorithms = algorithms;
	}
	
	public Algorithm[] getAlgorithms()
	{
		return algorithms;
	}

}
